/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.ByteArrayInputStream;
/*    */ import java.io.ByteArrayOutputStream;
/*    */ import java.io.IOException;
/*    */ import java.io.InputStream;
/*    */ import java.security.Key;
/*    */ import java.util.Arrays;
/*    */ import javax.crypto.Cipher;
/*    */ import javax.crypto.SecretKeyFactory;
/*    */ import javax.crypto.spec.DESKeySpec;
/*    */ import javax.crypto.spec.IvParameterSpec;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ww
/*    */ {
/*    */   private static final String d = "48780139";
/*    */   private static final String z = "DES";
/*    */   private static final String i = "DES/CBC/PKCS5Padding";
/*    */   private static final String w = "utf-8";
/*    */   private static Key q;
/*    */   private static byte[] g;
/*    */   
/*    */   public static byte[] z(byte[] a) throws Exception {
/* 50 */     if (a == null)
/* 51 */       return null; 
/* 52 */     Key key = v();
/* 53 */     Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
/* 54 */     IvParameterSpec ivParameterSpec = new IvParameterSpec("48780139".getBytes("utf-8"));
/* 55 */     cipher.init(2, key, ivParameterSpec);
/* 56 */     return cipher.doFinal(a);
/*    */   }
/*    */   
/*    */   public static byte[] v(byte[] a) throws Exception {
/* 60 */     if (a == null)
/* 61 */       return null; 
/* 62 */     Key key = v();
/* 63 */     Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
/* 64 */     IvParameterSpec ivParameterSpec = new IvParameterSpec("48780139".getBytes("utf-8"));
/* 65 */     cipher.init(1, key, ivParameterSpec);
/* 66 */     return cipher.doFinal(a);
/*    */   }
/*    */   
/*    */   public static InputStream v(InputStream a) {
/*    */     try {
/* 71 */       ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
/*    */       int i;
/* 73 */       while ((i = a.read()) != -1)
/* 74 */         byteArrayOutputStream.write(i); 
/* 75 */       byte[] arrayOfByte = byteArrayOutputStream.toByteArray();
/* 76 */       byteArrayOutputStream.close();
/* 77 */       return new ByteArrayInputStream(z(arrayOfByte));
/* 78 */     } catch (Exception exception) {
/* 79 */       exception.printStackTrace();
/* 80 */       return null;
/*    */     } finally {
/*    */       try {
/* 83 */         a.close();
/* 84 */       } catch (IOException iOException) {}
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ww.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */